package topCoderComponents.newsSubscription.model;

public class SubscriptionManager {
	private Storage storage;

	public SubscriptionManager(Storage storage) {
		this.storage = storage;
	}

	public int getSubscriptionCount() {
		return storage.getRecordCount();
	}

	public void addSubscription(Subscription sub) {
		storage.add(sub);
	}

	public void deleteSubscription(Subscription sub) {
		storage.delete(sub);
	}

}
